package com.honey.feature.xml;

import java.io.Reader;

import com.honey.feature.BaseFeature;

/**
 * xml 文件内容抽取
 * @author Administrator
 *
 */
public class XmlFeature extends BaseFeature{

	@Override
	public byte[] getContent(Reader reader, String charset) throws Exception {
		XmlContent xml = new XmlContent(reader);
		String content = xml.getContent();
		return content.getBytes(charset);
	}
	
}
